package com.liaowei.comment.openfeign;

import com.liaowei.comment.config.OpenFeignConfig;
import com.liaowei.common.BaseResponse;
import com.liaowei.model.param.PostCommentStatusParam;
import com.liaowei.model.param.PostUserParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "post-content-service",configuration = OpenFeignConfig.class)
public interface PostClient {

    // 保存articleUser
    @PostMapping("/contents/posts/users")
    BaseResponse<String> savePostUser(@RequestBody PostUserParam postUserParam);

    @PutMapping("/contents/posts/users/comment/status")
    BaseResponse<String> commentStatus(@RequestBody PostCommentStatusParam commentStatusParam);
}
